import React from 'react'
import Icon from '@/components/Icon'
import '../HomeHeard/index.scss'
import { useNavigate } from 'umi'
export default function HomeHeard(props: any) {
  const navigate = useNavigate()
  return (
    <div className='home-heard'>
      <Icon name='icon-test8' size={30} onClick={()=>{navigate(-1)}}/>
      <p style={{
        fontSize:22,
        color: '#FF734C'
      }}>{props.title}</p>
      <Icon name='icon-test2' size={26}/>
    </div>
  )
}
